{% extends 'base_registration.html' %}

{% block top_content %}
{% endblock %}

{% block main_content %}
<div class="gcb-main">
  <div class="gcb-article tab-content">
    <div class="gcb-aside">
      <p style="margin: 20px 0px;">
      {% if coursesetup.registration_questions %}
		Welcome!  Please answer the following question, and you will be enrolled in the course.
	  {% else %}
	    Welcome!  Please click enrole and you will be registered on the course.
	  {% endif %}
      </p>
      <form action='/{{ coursecode }}/register' method='post'>
        <fieldset>
          <ol>
            {% for item in registration_questions %}
            <li>
              <label for="{{ item }} "><span class="gcb_a_editable" gcb-a-action="/editor/{{ coursecode }}/course/todo/" >{{ registration_questions[item] }}</span></label>
              <input name="{{ item }}" type="text">
            </li>
            {% endfor %}
          </ol>
        </fieldset>
        </fieldset><button class="gcb-button" type="submit">Enroll</button>
      </form>
    </div>
  </div>
</div>

{% endblock %}

